import service from "../index";

export const statisticsTotal = (data) => {
    return service({
        method: "POST",
        url: "/statistics/apa/usage/submit",
        data
    });

};



export const queryTable= (data) => {
  return service({
    method: "POST",
    url: "http://172.26.166.11:18080/apa/usage/detail",
    data
});
  
  };


export const queryEcharts1 = (data) => {                                                                                                                                                                  
  return service({
    method: "POST",
    url: "http://172.26.166.11:18080/apa/usage/countChart",
    data
});
    
  };


  export const queryEcharts2 = (data) => {
    return service({
      method: "POST",
      url: "http://172.26.166.11:18080/apa/usage/durationChart",
      data
  });
   
  };


  export const querySYS = (data) => {
    return service({
      method: "POST",
      url: "http://172.26.166.11:18080/apa/usage/sysNameOps",
      data
  });
  
  };

  export const queryMode = (data) => {
    return service({
      method: "POST",
      url: "http://172.26.166.11:18080/apa/usage/moduleNameOps",
      data
  });
  
  };


  export const userNum = (data) => {
    return service({
      method: "POST",
      url: "http://172.26.166.11:18080/apa/usage/topCharts",
      data
  });
 
  };




  export const modeDetail= (data) => {
    return service({
      method: "POST",
      url: "http://172.26.166.11:18080/apa/usage/moduleInfo",
      data
  });

  };